package com.syh.jn.scm.domain.upstream.repository.sale;

import cn.redscarf.commons.wrapper.Wrapper;
import com.syh.core.ddd.infrastructure.repository.ReadRepo;
import com.syh.jn.scm.domain.upstream.entity.sale.UpSaleOrder;
import com.syh.jn.scm.dto.upstream.sale.SaleStatisticalAmountVo;

import java.util.List;

public interface UpSaleOrderReadRepository extends ReadRepo<UpSaleOrder, Long> {
    SaleStatisticalAmountVo statisticalAmount(Wrapper we);

    List<SaleStatisticalAmountVo> statisticalAmountByCustomer(Wrapper we);

    List<SaleStatisticalAmountVo> statisticalAmountByGoods(Wrapper we);
}
